from core.basehandler import BaseHandler
from core.room import Room
from core.action import Action
from items.kite import Kite

class Sea6aFishing(Room):
    def __init__(self, room_id):
        Room.__init__(self, room_id)
        self.add_item(Kite())
        self.add_action(PickUpKite)
        
    # return description of room.
    def get_description(self):
        return "The sun is shining bright and the sea has been calm, allowing you to rest through the night.  You gaze out towards the horizon and spot out of the corner of your eye, a school of fish.  You must assemble your available items to manufacture a fishing poll.  Do you have the correct items available? "
        
    # return image of room
    def get_image(self):
        return 'sea6fishing_pic.jpg'

class Sea6aFishingHandler(BaseHandler):
    # return class to use to create a new instance of this room
    def get_room_class(self):
        return Sea6aFishing

# define actions for this room
class PickUpKite(Action):
    def __init__(self):
        Action.__init__(self, "PickUpKite")    # do basic initialization for every action
    
    # return description of action (used in label on webpage)
    def get_description(self):
        return "Great, there's a Kite"
    
    # return id of room to enter when action is complete
    def get_destination(self):
        return 'sea6fishing'

    def get_method(self):
        return "get"
